<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/6/28 0028
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>分类管理</title>
</head>
<body>
<article class="viewports">
    <ul class="list_item">
        <c:forEach var="item" items="${wxShopCategoryList}">
        <li class="odr2_b plr20">
            <div class="layout-box">
                <div class="box-col c0 pr20">
                    <span>${item.categoryName}</span>
                    <span class="r">
                        <c:choose>
                            <c:when test="${item.productCount!=null}">
                                 商品数${item.productCount}
                            </c:when>
                        </c:choose>
                        </span>
                </div>
                <a class="odr2_l pl20" href="${ctx}/edit/category?categoryId=${item.categoryId}">
                    <i class="ico-60 ico_edit2"></i>
                </a>
            </div>
        </li>
        </c:forEach>
    </ul>
</article>
<!--star 底下按钮-->
<div class="buy_height"></div>
<div class="p_fotbtn tac">
    <button class=" b-ffaa3b cf ptb30 w fs30" onclick="javascript:location.href='${ctx}/add/category'" >添加分类</button>
</div>
<!--end 底下按钮-->
</body>
</html>